package com.eyepax.assignment.title.persistence.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Proxy;

@Entity
@Table(name="CONNECTOR_T_LOGIN")
@Proxy(lazy=true)
public class SystemLogin extends Persistent {

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name="hibernate-increment", strategy="increment")
	@GeneratedValue(generator="hibernate-increment")
	@Column(name="LOGIN_CODE")
	private Integer loginCode;
	
	@Column(name="USERNAME")
	private String userName;
	
	@Column(name="PASSWORD")
	private String password;
	
	@Column(name="CDS_NO")
	private String cdsNumber;
	
	@Column(name="LOGGEDIN_TIME")
	private String loggedInTime;

	@Column(name="LOGGEDOUT_TIME")
	private String loggedOutTime;

	@Column(name="STATUS")
	private String loginStatus;

	@Column(name="SESSIONID")
	private String sessionId;

	/**
	 * @return the loginCode
	 */
	public Integer getLoginCode() {
		return loginCode;
	}

	/**
	 * @param loginCode the loginCode to set
	 */
	public void setLoginCode(Integer loginCode) {
		this.loginCode = loginCode;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the cdsNumber
	 */
	public String getCdsNumber() {
		return cdsNumber;
	}

	/**
	 * @param cdsNumber the cdsNumber to set
	 */
	public void setCdsNumber(String cdsNumber) {
		this.cdsNumber = cdsNumber;
	}

	/**
	 * @return the loggedInTime
	 */
	public String getLoggedInTime() {
		return loggedInTime;
	}

	/**
	 * @param loggedInTime the loggedInTime to set
	 */
	public void setLoggedInTime(String loggedInTime) {
		this.loggedInTime = loggedInTime;
	}

	/**
	 * @return the loggedOutTime
	 */
	public String getLoggedOutTime() {
		return loggedOutTime;
	}

	/**
	 * @param loggedOutTime the loggedOutTime to set
	 */
	public void setLoggedOutTime(String loggedOutTime) {
		this.loggedOutTime = loggedOutTime;
	}

	/**
	 * @return the loginStatus
	 */
	public String getLoginStatus() {
		return loginStatus;
	}

	/**
	 * @param loginStatus the loginStatus to set
	 */
	public void setLoginStatus(String loginStatus) {
		this.loginStatus = loginStatus;
	}

	/**
	 * @return the sessionId
	 */
	public String getSessionId() {
		return sessionId;
	}

	/**
	 * @param sessionId the sessionId to set
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

}
